﻿@using ContactMvc4TB.Helpers.HelperClasses
@model ContactManagement.Models.LogOnModel
@{
    ViewBag.Title = GlobalResources.PageTitles.LoginRESX;
}
<div class="span2">
    &nbsp;
</div>

<div class="span8">
    <div class="well page-header">
        <h1>@ViewBag.Title</h1>
        <br />
        <p>
            @GlobalResources.AccountViews.LoginTextRESX @Html.ActionLink(GlobalResources.Navigation.RegisterLinkRESX, EActionAccount.Register.ToString())
            @GlobalResources.AccountViews.RegisterAccountDontHabeOneRESX
            ( @Html.ActionLink(GlobalResources.Navigation.ForgottenPasswordRESX, EActionAccount.ForgottenPassword.ToString()) )
        </p>
    </div>

    @using (Html.BeginForm(EActionAccount.Login.ToString(), EControllers.Account.ToString(), new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-signin" }))
    {
@* Unseren eigenen Validation Summary anzeigen, damit dieser auch in die Twitter Api passt. *@
        @Html.MyValidationSummary(GlobalResources.SystemMessages.LoginerrorRESX)
        @Html.TextBoxFor(m => m.UserName, new { @class = "input-block-level", placeholder = "Loginname (E-Mail)" })
        @Html.PasswordFor(m => m.Password, new { @class = "input-block-level", placeholder = "Passwort" })
        
        <label class="checkbox">
            @Html.CheckBoxFor(m => m.RememberMe)
            Login merken?
        </label>
        
        <input class="btn btn-large btn-block btn-primary" type="submit" value="@GlobalResources.Navigation.LoginButtonRESX" />
    }
</div>
<div class="span2">
    &nbsp;
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
